home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / graphics / gnuplot / gnuplot-3.7.1src / gnuplot-3.7.1 / makefile.vms < prev    next >
Makefile  |  1999-11-29  |  4KB  |  138 lines

  1. #
  2. # $Id: makøÄ
  3. 2.2 1999/10/20 14:04:13 lhecking Exp $
  4. #
  5. # GNUPLOT Makefile for VMS
  6. #
  7. # use with the MAKE that was posted by Tony Ivanov (tony@gvgpvd.GVG.TEK.COM)
  8. # in comp.os.vms on 5 December 1988
  9. #
  10. # Modified 23 June 1999 to work with MMK; it should also work with MMS.
  11. # John.Hasstedt@sunysb.edu.
  12. #
  13. # You can define a macro on the command line to specify the compiler, either
  14. # VAXC or GNUC; if you do not specify either, it uses DECC.  If you are
  15. # compiling on Alpha, you should also define __ALPHA__ (MMK does this for you,
  16. # for MMS, use MMS/DESCRIP=MAKEFILE.VMS/MACRO=__ALPHA__).
  17.  
  18. ########### COMPILE OPTIONS ###########
  19.  
  20. .IFDEF VAXC
  21. CC=CC
  22. WHICHRTL=VAXCRTL
  23. CRTL_SHARE=,sys$$disk:[]linkopt.vms/opt
  24. PREFIXALL=
  25. CRTL_SHARE=
  26. EXTRADEFS=
  27. EXTRAOBJ=
  28. EXTRALIB=
  29. .ELSE
  30. .IFDEF GNUC
  31. CC=GCC
  32. WHICHRTL=VAXCRTL
  33. CRTL_SHARE=,sys$$disk:[]linkopt.vms/opt
  34. PREFIXALL=
  35. CRTL_SHARE=
  36. EXTRADEFS=
  37. EXTRAOBJ=
  38. EXTRALIB=,gnu_cc:[000000]gcclib/lib
  39. .ELSE  # DECC
  40. CC=CC
  41. WHICHRTL=DECCRTL
  42. PREFIXALL=/prefix=all
  43. CRTL_SHARE=
  44. .IFDEF __ALPHA__
  45. EXTRADEFS=,HAVE_SLEEP,HAVE_GETCWD,HAVE_LGAMMA,HAVE_UNISTD_H
  46. .ELSE
  47. EXTRADEFS=,HAVE_SLEEP,HAVE_GETCWD,HAVE_UNISTD_H
  48. EXTRAOBJ=
  49. EXTRALIB=
  50. .ENDIF
  51. .ENDIF
  52.  
  53. #maybe ABJ and AXE if that's your local convention for alpha
  54. #(that's how I build vax and axp programs in same directory)
  55. O=OBJ
  56. X=EXE
  57.  
  58. # NOOP  NO Optimiser
  59. # take out X11 if you dont want windows support
  60. # pipes compiles with popen emulation (from VMS perl-5 port)
  61. CFLAGS = /define=(NO_GIH,X11,PIPES$(EXTRADEFS),$(WHICHRTL)) $(PREFIXALL)
  62. TERMFLAGS = /include=[.term]
  63.  
  64.  
  65. ############## okay, that's enough fiddling ###############
  66.  
  67. OBJS1 = alloc.$(O),binary.$(O),bitmap.$(O),command.$(O),contour.$(O),datafile.$(O),eval.$(O),
  68. OBJS2 = fit.$(O),graphics.$(O),graph3d.$(O),help.$(O),hidden3d.$(O),internal.$(O),interpol.$(O),
  69. OBJS3 = matrix.$(O),misc.$(O),parse.$(O),plot.$(O),plot2d.$(O),plot3d.$(O),scanner.$(O),set.$(O),
  70. OBJS4 = show.$(O),specfun.$(O),standard.$(O),stdfn.$(O),term.$(O),time.$(O),util.$(O),util3d.$(O),version.$(O),vms.$(O)
  71. OBJS = $(OBJS1)$(OBJS2)$(OBJS3)$(OBJS4)$(EXTRAOBJ)
  72.  
  73. CSOURCE1 = command.c set.c show.c
  74. CSOURCE2 = help.c graphics.c graph3d.c internal.c
  75. CSOURCE3 = misc.c eval.c parse.c plot.c plot2d.c plot3d.c scanner.c standard.c stdfn.c
  76. CSOURCE4 = bitmap.c term.c time.c util.c version.c interpol.c fit.c matrix.c
  77. CSOURCE5 = [.term]aed.trm [.term]cgi.trm [.term]dumb.trm [.term]dxf.trm [.term]dxy.trm \
  78.     [.term]eepic.trm [.term]epson.trm [.term]fig.trm [.term]hp26.trm \
  79.     [.term]hp2648.trm [.term]hpgl.trm [.term]hpljii.trm
  80. CSOURCE6 = [.term]impcodes.h [.term]imagen.trm [.term]object.h \
  81.     [.term]iris4d.trm [.term]kyo.trm [.term]latex.trm [.term]pbm.trm  \
  82.     [.term]pc.trm
  83. CSOURCE7 = [.term]post.trm [.term]qms.trm [.term]regis.trm [.term]sun.trm \
  84.     [.term]t410x.trm [.term]tek.trm [.term]unixpc.trm [.term]unixplot.trm \
  85.     [.term]v384.trm [.term]x11.trm gplt_x11.c
  86. CSOURCE8 = contour.c specfun.c interpol.c vms.c
  87.  
  88. all :   gnuplot.$(X) gnuplot_x11.$(X) gnuplot.hlp gnuplot.hlb [.demo]binary1.
  89.  
  90. gnuplot.$(X) : $(OBJS) $(EXTRAOBJ)
  91.     link /exe=gnuplot.$(X) vms.$(O),gnuplot.opt/opt$(EXTRAOBJ)$(EXTRALIB)$(CRTL_SHARE)
  92.  
  93. gnuplot_x11.$(X) : gplt_x11.$(O) stdfn.$(O)
  94.     link /exe=gnuplot_x11.$(X) gplt_x11.$(O),stdfn.$(O),x11.opt/option$(CRTL_SHARE)
  95.  
  96. gplt_x11.o : gplt_x11.c
  97.     $(CC) $(CFLAGS) $(X11FLAGS)
  98.  
  99. [.demo]binary1. [.demo]binary2. [.demo]binary3. : bf_test.$(X)
  100.     set default [.demo]
  101.     run [-]bf_test.$(X)
  102.     set default [-]
  103.        
  104. bf_test.$(X) : bf_test.$(O) binary.$(O) alloc.$(O)
  105.     link /exe=bf_test.exe bf_test.$(O),binary.$(O),alloc.$(O)
  106.  
  107. gnuplot.hlp : doc2hlp.$(X) [.docs]gnuplot.doc
  108.     define/user sys$input [.docs]gnuplot.doc
  109.     define/user sys$output []gnuplot.hlp
  110.     run doc2hlp
  111.  
  112. gnuplot.hlb : gnuplot.hlp
  113.     library/create/help gnuplot.hlb gnuplot.hlp
  114.  
  115. doc2hlp.$(X) : [.docs]doc2hlp.c [.docs]termdoc.c
  116.     $(CC) /include=([.docs],[],[.term]) [.docs]doc2hlp.c,[.docs]termdoc.c
  117.     link /exe=doc2hlp.$(X) doc2hlp,termdoc$(CRTL_SHARE)
  118.  
  119. term.$(O) : term.h term.c $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  120.     $(CC) $(CFLAGS) $(TERMFLAGS) term.c /object=term.$(O)
  121.  
  122. $(OBJS) : plot.h
  123.  
  124. command.$(O) help.$(O) misc.$(O) : help.h
  125.  
  126. command.$(O) graphics.$(O) graph3d.$(O) misc.$(O) plot.$(O) set.$(O) show.$(O) term.O interpol.$(O) : setshow.h
  127.  
  128. command.$(O) fit.$(O) matrix.$(O) : fit.h
  129.  
  130. fit.$(O) matrix.$(O) : matrix.h
  131.  
  132. bitmap.$(O) term.$(O) : bitmap.h
  133.  
  134. clean :
  135.     purge/log
  136.     delete/log *.$(O);*
  137.     delete/log [.demo]binary1.;*,binary2.;*,binary3.;*
  138.